/* 
 * sync_correlation.h
 * Created on August 5, 2005; 5:45 PM
 * by vramadurai
 */
#ifndef _SYNC_CORRELATION_H_
#define _SYNC_CORRELATION_H_

#include "HsTypes.h"

void update_read_ptr(
                        struct HS_Phy11bStr  * HS_Phy11bPtrTh,                       
                        volatile hs_int32_t  * nextFlag,                                      
                        hs_int16_t  * restrict ssInI, 
                        hs_int16_t  * restrict ssInQ                        
                    );
              
void incr_corr_buffer_ptr_nojunk(
                            struct HS_Phy11bStr  *HS_Phy11bPtrTh                            
                         );

void do_sync_coarse_corr_th4(
                            struct HS_Phy11bStr  *HS_Phy11bPtrTh,     
                            hs_int16_t  * restrict psUpSampBarkerSeq,                            
                            ePHYSTATES_TH *ePhyState,
                            hs_int32_t  *siStateCount
                        );

void sync_coarse_corr_th4(
                            struct HS_Phy11bStr  *HS_Phy11bPtrTh,     
                            hs_int16_t  * restrict psUpSampBarkerSeq,                            
                            ePHYSTATES_TH *ePhyState,
                            hs_int32_t  *siStateCount
                        );

void do_sync_coarse_corr_th3(
                            struct HS_Phy11bStr  *HS_Phy11bPtrTh,                                 
                            ePHYSTATES_TH *ePhyState,
                            hs_int32_t  *siStateCount
                        );

void sync_coarse_corr_th3(
                            struct HS_Phy11bStr  *HS_Phy11bPtrTh,                                 
                            ePHYSTATES_TH *ePhyState,
                            hs_int32_t  *siStateCount
                        );


#endif
